/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.fx.retail.entity;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 发货单明细Entity
 * @author jyangye
 * @version 2018-01-16
 */
public class FxDeaDispatchorderlist extends DataEntity<FxDeaDispatchorderlist> {
	
	private static final long serialVersionUID = 1L;
	private String dispatchorderlistid;		// dispatchorderlistid
	private String dispatchorderid;		// dispatchorderid
	private Integer waresid;		// waresid
	private Double unitprice;		// unitprice
	private Integer deliverycount;		// deliverycount
	private Integer checkedcount;		// checkedcount
	private Double summoney;		// summoney
	private String batch;		// batch
	private String wareposition;		// wareposition
	
	public FxDeaDispatchorderlist() {
		super();
	}

	public FxDeaDispatchorderlist(String id){
		super(id);
	}

	@Length(min=1, max=32, message="dispatchorderlistid长度必须介于 1 和 32 之间")
	@ExcelField(title="dispatchorderlistid", align=2, sort=10)
	public String getDispatchorderlistid() {
		return dispatchorderlistid;
	}

	public void setDispatchorderlistid(String dispatchorderlistid) {
		this.dispatchorderlistid = dispatchorderlistid;
	}
	
	@Length(min=1, max=32, message="dispatchorderid长度必须介于 1 和 32 之间")
	@ExcelField(title="dispatchorderid", align=2, sort=20)
	public String getDispatchorderid() {
		return dispatchorderid;
	}

	public void setDispatchorderid(String dispatchorderid) {
		this.dispatchorderid = dispatchorderid;
	}
	
	@ExcelField(title="waresid", align=2, sort=30)
	public Integer getWaresid() {
		return waresid;
	}

	public void setWaresid(Integer waresid) {
		this.waresid = waresid;
	}
	
	@NotNull(message="unitprice不能为空")
	@ExcelField(title="unitprice", align=2, sort=40)
	public Double getUnitprice() {
		return unitprice;
	}

	public void setUnitprice(Double unitprice) {
		this.unitprice = unitprice;
	}
	
	@NotNull(message="deliverycount不能为空")
	@ExcelField(title="deliverycount", align=2, sort=50)
	public Integer getDeliverycount() {
		return deliverycount;
	}

	public void setDeliverycount(Integer deliverycount) {
		this.deliverycount = deliverycount;
	}
	
	@ExcelField(title="checkedcount", align=2, sort=60)
	public Integer getCheckedcount() {
		return checkedcount;
	}

	public void setCheckedcount(Integer checkedcount) {
		this.checkedcount = checkedcount;
	}
	
	@NotNull(message="summoney不能为空")
	@ExcelField(title="summoney", align=2, sort=70)
	public Double getSummoney() {
		return summoney;
	}

	public void setSummoney(Double summoney) {
		this.summoney = summoney;
	}
	
	@Length(min=0, max=30, message="batch长度必须介于 0 和 30 之间")
	@ExcelField(title="batch", align=2, sort=80)
	public String getBatch() {
		return batch;
	}

	public void setBatch(String batch) {
		this.batch = batch;
	}
	
	@Length(min=0, max=30, message="wareposition长度必须介于 0 和 30 之间")
	@ExcelField(title="wareposition", align=2, sort=90)
	public String getWareposition() {
		return wareposition;
	}

	public void setWareposition(String wareposition) {
		this.wareposition = wareposition;
	}
	
}